﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Com.GUI;
using Com.BU;
using Com.DA;
using ColdStorage.DOL;

namespace ColdStorage.GUI
{
    /// <summary>
    /// Interaction logic for ucMainStorageCold.xaml
    /// </summary>
    public partial class ucMainStorageCold : UserControl
    {
        public ucMainStorageCold()
        {
            InitializeComponent();
            ucRoomCold1.MyProudctId = new ucRoomCold.GetProductId(GetID);
            ucRoomCold1.myProductType = new ucRoomCold.GetProductType(GetProduct_type);
            //ucRoomCold1.MyProudctId = new ucRoomCold.GetProductId()

            ucProduct1.myProductInputTemp = new ucProduct.GetProductInputTemp(GetProductInputTemp);
            ucProduct1.myProducStorageTemp = new ucProduct.GetProductStorageTemp(GetProductStorageTemp);


        }

       

        public void GetID(int productid)
        {
            ucProduct1.pId = productid;
            ucInternalLoadCold1.Product_id = productid;
        }

        public void GetProduct_type(int producttype)
        {
            ucInternalLoadCold1.Product_type = producttype;
        }

        public void GetProductInputTemp(int inputtemp)
        {
            ucInternalLoadCold1.ProductInputTemp = inputtemp;
        }
        public void GetProductStorageTemp(int storagetemp)
        {
            ucInternalLoadCold1.ProductStorageTemp = storagetemp;
        }
       
    }
}
